package com.bean;

import com.bean.anno.TableExcel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.time.LocalDateTime;

@Data
@Entity
@Table(name = "zjmusic")
@TableExcel(name="zjmusic", content = "EasyExcel咱家音乐",jpaBeanName="com.mapper.repository.ZjMusicRepository")
public class ZjMusic {

    @Id
    private String id;

    private String name;

    private String url;

    private String picurl;

    private String artistsname;

    private String status;//状态 是否还能播放

    private String type;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;

    private LocalDateTime updatetime;

    @Transient
    private String userid;
    @Transient
    private String duration;//音乐播放的时长

    @Transient
    private int songCount;
    @Transient
    private int limit = 10;
    @Transient
    private int offset = 0;

}
